import { Entity, PrimaryKey, Jsonb, CreateDate, UpdateDate, Boolean, SysUserId, CreateUserId, Desc } from '@sker/core'
/**
 * 系统设置
 */
@Entity({
    name: 'sys_setting'
})
export class SysSetting {
    static title: string = `系统设置`;
    static resource: string = `sys_setting`;

    @PrimaryKey({
        comment: '代号',
        primaryKeyConstraintName: 'PK_SYS_SETTING_CODE'
    })
    code!: string;

    @Desc({ comment: '备注', default: '' })
    desc: string;

    @Jsonb({
        comment: '配置文件'
    })
    data!: any;

    @Boolean({
        comment: '状态'
    })
    status!: boolean;

    @CreateUserId({ nullable: true })
    create_uid!: string;

    @CreateDate({
        comment: '创建日期'
    })
    create_date!: Date;

    @UpdateDate({
        comment: '更新日期'
    })
    update_date!: Date;
}